package com.practice.java8.functionalinterface;


public class ConverterMain {

	public static void main(String[] args) {
		
		Converter<String, Integer> converter = (from) -> Integer.valueOf(from);
		Integer converted = converter.convert("123");
		System.out.println(converted);

		converter = Integer::valueOf;
		converted = converter.convert("123");
		System.out.println(converted);
		
		converter = "123"::indexOf;
		converted = converter.convert("123");
		System.out.println(converted);
	}

}
